<?php
	$ten=$_GET["q"];
	include("csdl.php");
	$knoi=new csdl();
	$t=$knoi->queryCsdl("select DISTINCT tentinhtp from tinhthanhpho where tentinhtp like '$ten%'");
	if(mysql_num_rows($t)!=0&&$ten!="")
	{
		$str='';
		while($n=mysql_fetch_array($t))
		{
			/*if($str!='')
				$str=$str." ".$n["tennuoc"];
			else
				$str=$str.$n["tennuoc"];*/
				echo $n['tentinhtp']."\n";
		}
	}?>